<template>
<<<<<<< HEAD
	<!-- 要写小程序的标签 -->
	<view>
		<u-search placeholder="请输入关键词" disabled :show-action="false" margin="20rpx 24rpx" @click="toGoodsListPage">
		</u-search>
<<<<<<< HEAD
<<<<<<< HEAD
<<<<<<< HEAD


		<reod :arr='reod'></reod>
		<child :top='child'></child>
=======
	<view class="content">
		<u-search :show-action="false" margin="20rpx 20rpx" @click="Tiao" :disabled="true"></u-search>
		<view class="wrap">
			<u-swiper :list="list1" height="400"></u-swiper>
		</view>
	</view>
>>>>>>> 9b81b9882a664734360f9d5ed24ae1788b841adb
=======
		<indexGoodsList :categoryList="categoryList"></indexGoodsList>

>>>>>>> 06a4d9a69d3530a59b359dfbdfda0dc169a46c30
=======
		<daily :arr="channel"></daily>
		<view class="brandtop">
			品牌制造商直供
		</view>
		<view v-for="item in brand">
			<brand :id=item.id :name=item.name :price=item.floor_price :img=" item.list_pic_url"></brand>
		</view>



>>>>>>> d4a59e69099b848b588754499e4c5cdf5ed466d4
=======
		<!-- 如果是文档流布局，不需要考虑tabBar的占位 -->

		<!-- easycom模式 components文件夹下，文件目录和.vue文件名字相同，可以直接使用 -->
		<!-- <child></child> -->
		<Newproduct></Newproduct>

>>>>>>> 934f84352420075323924c53728aeaa9c5ce641c
	</view>
</template>

<script>
	export default {
<<<<<<< HEAD
		data() {
			return {
<<<<<<< HEAD
				id: 1,
				msg: 'hello',
<<<<<<< HEAD
				reod: [],
				child: []
=======
				categoryList: [],
>>>>>>> 06a4d9a69d3530a59b359dfbdfda0dc169a46c30
=======
				brand: [],
				channel: [],
>>>>>>> d4a59e69099b848b588754499e4c5cdf5ed466d4
			}
		},
		// 小程序页面生命周期
=======
>>>>>>> 9b81b9882a664734360f9d5ed24ae1788b841adb
		onLoad() {
			this.$request({
				url: 'index/index',
				// 设想 在这里有一个成功的回调函数去处理接口返回来的数据
				successCb: (res) => {
					// 在这里处理数据
<<<<<<< HEAD
<<<<<<< HEAD
					// console.log(res)
					this.reod = res.hotGoodsList
					this.child = res.topicList
=======
					console.log(res)
<<<<<<< HEAD
					this.channel = res.channel
>>>>>>> 9b81b9882a664734360f9d5ed24ae1788b841adb
=======
					// console.log(res)
					let {
						categoryList
					} = res
					this.categoryList = categoryList
					console.log(this.categoryList);
>>>>>>> 06a4d9a69d3530a59b359dfbdfda0dc169a46c30
=======
					this.brand = res.brandList
					this.channel = res.channel
>>>>>>> d4a59e69099b848b588754499e4c5cdf5ed466d4
				},
				failCb: () => {
					// 处理请求失败
				}
			})
		},
<<<<<<< HEAD
<<<<<<< HEAD
<<<<<<< HEAD
		data() {
			return {
				keyword: '请输入搜索关键字',
				channel: [],
				list: [{
					path: "../pages/list/list",
				}],
				list1: [{
						image: 'https://yanxuan.nosdn.127.net/31da695c84cabd0eaff054265da29e5c.jpg?imageView&quality=75&thumbnail=750x0',

					},
					{
						image: 'https://yanxuan.nosdn.127.net/baea18aa59217cabd190b19fc1cf1617.jpg?imageView&quality=75&thumbnail=750x0',

					},
					{
						image: 'https://yanxuan.nosdn.127.net/d5683f01e132851229be21c52d808b62.jpg?imageView&quality=75&thumbnail=750x0',

					},
					{
						image: 'https://yanxuan.nosdn.127.net/af7d906e174cb160ab5a979310aa223d.jpg?imageView&quality=75&thumbnail=750x0'
					}
				]
			}
=======
		onShow() {

>>>>>>> d4a59e69099b848b588754499e4c5cdf5ed466d4
=======
		onShow() {

>>>>>>> 934f84352420075323924c53728aeaa9c5ce641c
		},
=======

>>>>>>> 06a4d9a69d3530a59b359dfbdfda0dc169a46c30
		methods: {
<<<<<<< HEAD
			Tiao() {
=======
			toGoodsListPage() {
>>>>>>> 934f84352420075323924c53728aeaa9c5ce641c
				uni.navigateTo({
					url: "../goodsList/goodsList"
				})
			}
		},

	}
</script>

<style lang="scss">
	.box {
		color: $uni-color-primary;
	}

	.bottom {
		position: fixed;
		right: 0;
		// bottom: var(--window-bottom); // 如果是定位，需要考虑tabBar的占位 --window-bottom:tabBar的高度，是一个变量

		/* #ifdef MP-WEIXIN */
		bottom: 0;
		/* #endif */

		/* #ifdef H5 */
		bottom: 50px;
		/* #endif */
	}

	.brandtop {
		font-size: 20px;
		width: 750rpx;
		height: 50px;
		text-align: center;
		line-height: 50px;
	}
</style>
